timing of surgery